#!/bin/bash
# Zaitan Module - Grub Gfxboot Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Grub Gfxboot'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='4.0_beta'
RMOD_DESCRIPTION='Installs Grub Gfxboot'
RMOD_UPDATE_URL='http://zaitan.googlecode.com/files/'


# Install Grub Gfxboot

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan

wget http://deb.user.ba.googlepages.com/message.ubugrey
wget -c http://kanotix.com/files/debian/pool/main/g/grub-gfxboot/grub-gfxboot_0.97-11_i386.deb


apt-get -y remove grub
dpkg -i grub-gfxboot_0.97-11_i386.deb

cp /boot/grub/menu.lst /boot/grub/menu.lst.bkp

sed -i '1i\gfxmenu /\boot/\grub/\message.ubugrey' /boot/grub/menu.lst

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0
